

package com.jingdun.sport.common.bean;

import cn.hutool.core.util.StrUtil;
import com.jingdun.sport.common.enums.QiniuZone;
import lombok.Data;

/**
 * 七牛云存储配置信息

 */
@Data
public class Qiniu {

	private String accessKey;

	private String secretKey;

	private String bucket;

	private String resourcesUrl;

	private QiniuZone zone;

	private String policyStr = "avthumb/mp4/refine/1/r/60/hr/1/aspect/16:9";

	public String pathToUrl(String path) {
		StringBuilder sb = new StringBuilder();
		sb.append("http://").append(resourcesUrl).append(path);
		return sb.toString();
	}
}